﻿using Compass.Wasm.Shared;
using Microsoft.EntityFrameworkCore.Design;

namespace Compass.WmsService.Infrastructure;

public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<WmsDbContext>
{
    public WmsDbContext CreateDbContext(string[] args)
    {
        var optionBuilder = DbContextOptionsBuilderFactory.Create<WmsDbContext>();
        return new WmsDbContext(optionBuilder.Options, null);
    }
}